﻿[output_none]

	[if:(action_param:'menuform_title')!='' && (action_param:'menuform_menu')!='' && (action_param:'menuform_lang')!='']
		
		[var:'sql_rename_menu'='
			UPDATE		SHb_translations_menus
			SET			label			= \'' + (encode_sql:(action_param:'menuform_title')) + '\'
			WHERE		_k2_menuid		= \'' + (encode_sql:(action_param:'menuform_menu')) + '\'
			AND			_k2_languageid	= \'' + (encode_sql:(action_param:'menuform_lang')) + '\' ']
						
		[Inline: -database='SHoebox', -sql=$sql_rename_menu]
		
			[if:(error_currenterror:-errorcode)==0]
				[var:'output_message'='Menu Saved']
			[else]
				[var:'output_message'='An error occured while saving']
			[/if]
			
		[/inline]
	
	[else]
	
		[var:'output_message'='An error occured while saving']
		
	[/if]
	
[/output_none]
<b>[var:'output_message',-encodenone]</b>